projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0520ca3
)
Fix parsing of font-weight
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 20 Dec 2015 22:51:47 +0000
(17:51 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 20 Dec 2015 22:51:47 +0000
(17:51 -0500)
The parser was turning a 400 into a 200 and a 700 into a 500.
gtk/gtkcssenumvalue.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssenumvalue.c
b/gtk/gtkcssenumvalue.c
index c606f0bffd090596ec47df760e440635b2b7ec16..f8828ecf808af46cda12ceebfd95b204ae074aa1 100644
(file)
--- a/
gtk/gtkcssenumvalue.c
+++ b/
gtk/gtkcssenumvalue.c
@@
-481,9
+481,9
@@
_gtk_css_font_weight_value_try_parse (GtkCssParser *parser)
}
/* special cases go here */
if (_gtk_css_parser_try (parser, "400", TRUE))
- return _gtk_css_value_ref (&font_weight_values[
3
]);
+ return _gtk_css_value_ref (&font_weight_values[
5
]);
if (_gtk_css_parser_try (parser, "700", TRUE))
- return _gtk_css_value_ref (&font_weight_values[
6
]);
+ return _gtk_css_value_ref (&font_weight_values[
8
]);
return NULL;
}